import java.security.SecureRandom;
import java.util.Random;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
//
//        int i = 100;
//        for (i = 100; i <= 200; i++) {
//            int j = 1;
//            while ((i % 3 != 0 || i % 4 != 0)) {
//                i++;
//                continue;
//            }
//            while (j > 0 && i < 200) {
//                j--;
//                System.out.println(i);
//            }
//        }
//    }

        //猜数字游戏
        /*Scanner scanner= new Scanner(System.in);
        Random random=new Random();
        int num= random.nextInt(101);//[0,101）
        while(true){
            System.out.println("请输入您猜的数字");
            int guessNum=scanner.nextInt();
            if(guessNum>num) {
                System.out.println("猜大了");
            }else if(guessNum==num){
                System.out.println("猜对了");
                break;
            }else{
                System.out.println("猜小了");
            }
        }*/

        //计算1-100中所有整数中出现9的次数
        /*int count=0;
        for (int i = 1; i <= 100; i++) {
            int temp=i;
            while(temp>0){
                if(temp%10==9){
                    count++;
                }
                temp/=10;
            }
        }
        System.out.println(count);*/
        /*double sum=0;
        for (int i = 1; i <=100 ; i++) {
            if(i%2==0){
                sum-=1.0/i;
            }else {
                sum+=1.0/i;
            }
        }
        System.out.println(sum);*/

        /*Scanner scanner=new Scanner(System.in);
        while(scanner.hasNextInt()){
            int num=scanner.nextInt();
            int tem=num;
            while(tem>0){
                System.out.print(tem%10);
                if(tem>=10){
                    System.out.print(',');
                }else{
                    System.out.println();
                }
                tem/=10;
            }
        }*/
        /*Random random =new Random();
        int password= random.nextInt(90)+10;
        System.out.println(password);
        int i=3;
        while(i-->0){
            System.out.println("请输入您的密码(两位数)：");
            Scanner scanner=new Scanner(System.in);
            int num=scanner.nextInt();
            if(num==password){
                System.out.println("登录成功");
                break;
            }else if(i==0){
                System.out.println("您已经输错了三次密码，正在退出程序...");
            }else{
                System.out.println("输入错误，请重新输入");
            }
        }*/
        /*Scanner scanner=new Scanner(System.in);
        int num= scanner.nextInt();
        int dnum=num;
        System.out.print("odd:");
        while(dnum!=0){
            System.out.print(dnum&1);
            dnum>>>=2;
        }
        System.out.println();
        System.out.print("even:");
        dnum=num;
        while(dnum!=0&&(dnum>>>1!=0)){
            dnum>>>=1;
            System.out.print(dnum&1);
            dnum>>>=1;
        }*/


       /* Scanner scanner=new Scanner(System.in);
        int num1= scanner.nextInt();
        int num2= scanner.nextInt();
        if(num1<num2){
            int tem=num1;
            num1=num2;
            num2=tem;
        }
        int numm;
        while(num2!=0){
            if((num1%num2)==0){
                System.out.println(num2);
                break;
            }else{
                numm=num1%num2;
                num1=num2;
                num2=numm;
            }
        }*/


        /*Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        System.out.print("even:");
        for (int i = 31; i >= 1; i -= 2) {
            System.out.print(((num >>> i) & 1) + " ");
        }
        System.out.println();
        System.out.print("odd :");
        for (int i = 30; i >= 0; i -= 2) {
            System.out.print(((num >>> i) & 1) + " ");
        }*/


        /*int count=3;
        while(count!=0){
            System.out.println("请输入您的密码");
            Scanner scanner=new Scanner(System.in);
            String password=scanner.nextLine();
            if(password.equals("123")){
                System.out.println("登录成功");
                break;
            }else{
                count--;
                if(count==0){

                    System.out.println("您已经三次输入错误，正在退出程序");
                    break;
                }else{
                    System.out.println("密码错误，您还有"+count+"次机会");
                }
            }
        }*/
    }

}